import 'package:get/get.dart';
import 'package:safe_manage/config/my_app_routes.dart';
import '../../../models/recordPicture.dart';

class AlarmPictureListController extends GetxController {
  var imgList = <RecordPicture>[];
  String title = "";
  String bumen = "";
  @override
  void onInit() {
    super.onInit();
    imgList = Get.arguments;
    Map p = Get.parameters;
    title = p['title'];
    bumen = p["bumen"];
  }

  void itemClicked(int index) {
    Get.toNamed(MyAppRoutes.alarmPictureInfo,
        arguments: imgList[index],
        parameters: {
          "bumen": bumen,
        });
  }
}
